//
//  NSString+Helper.h
//  ruying
//
//  Created by yqh on 2019/2/23.
//  Copyright © 2019年 林伟钦. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Helper)

- (CGFloat)widthForStringWithFont:(UIFont *)font maxHeight:(CGFloat)height;
- (CGFloat)heightForStringWithFont:(UIFont *)font maxWidth:(CGFloat)width;
- (CGFloat)heightForStringWithFont:(UIFont *)font lineSpacing:(CGFloat)lineSpacing maxWidth:(CGFloat)width;

- (CGFloat)heightForYYTextWithFont:(UIFont *)font lineSpacing:(CGFloat)lineSpacing maxWidth:(CGFloat)width;

+ (NSAttributedString *)getAttributedStringWithString:(NSString *)string font:(UIFont *)font lineSpacing:(CGFloat)lineSpacing;

@end
